package com.heima.wemedia.feign;

import com.heima.model.common.dtos.ResponseResult;
import com.heima.model.user.pojos.ApUser;
import com.heima.wemedia.service.WmUserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class IWemediaClientController {

    @Autowired
    private WmUserService userService;


    /**
     * 添加自媒体账号
     * @param apUser app用户端数据
     * @return 成功
     */
    @PostMapping("/api/v1/WmUser/add")
    public ResponseResult addUser(@RequestBody ApUser apUser){
       return userService.addUser(apUser);
    }
}
